﻿using AutoDeployForSims.Service;
using MyUtility.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutoDeployForSims.ViewModel
{

    public class TestControlViewModel
    {

        private string comName1;

        public string COMName1
        {
            get { return comName1; }
            set { comName1 = value; }
        }


        private string comName2;

        public string COMName2
        {
            get { return comName2; }
            set { comName2 = value; }
        }

        private string deleteComName;

        public string DeleteComName
        {
            get { return deleteComName; }
            set { deleteComName = value; }
        }


        private VSDPCtrlService MyVSDPCtrlService = SingletonProvider<VSDPCtrlService>.Instance;

        public void Create()
        {
            MyVSDPCtrlService.CreateVSDPCom(COMName1, COMName2);
        }

        public void Delete()
        {
            MyVSDPCtrlService.DeleteVSDPCom(DeleteComName);
        }
    }
}
